package com.regex.web.entity.sys;

import java.io.Serializable;
import java.util.List;

public class MenuDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6243140226130111948L;
	private Long id;
    private Long parentId;//父菜单ID，一级菜单为0
    private String name;//菜单名称
    private String icon;//菜单图标
    private String isDel;//删除标记 0 未删除 1 删除
    private String perms;//授权(多个用逗号分隔，如：user:list,user:create)
    private Integer orderNum;//排序
    private Integer type;//类型   0：目录   1：菜单   2：按钮
    private String url;//菜单URL
    private String sjly;
    
    /**
     * 子目录
     */
    private List<MenuDTO> childMenu;
    
    public List<MenuDTO> getChildMenu() {
		return childMenu;
	}
	public void setChildMenu(List<MenuDTO> childMenu) {
		this.childMenu = childMenu;
	}
	public MenuDTO() {
        super();
    }
    public MenuDTO(Long id,Long parentId,String name,String icon,String isDel,String perms,Integer orderNum,Integer type,String url,String sjly) {
        super();
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.icon = icon;
        this.isDel = isDel;
        this.perms = perms;
        this.orderNum = orderNum;
        this.type = type;
        this.url = url;
        this.sjly=sjly;
    }
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIsDel() {
        return this.isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public String getPerms() {
        return this.perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return this.url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public void setSjly(String sjly) {
        this.sjly = sjly;
    }
    public String getSjly() {
        return this.sjly;
    }

    

}
